home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / setup / vbnet / 03 control flow and error handling / controlflowdemo / optionstrictoff.vb < prev   
Encoding:
Text File  |  2002-03-16  |  391 b   |  17 lines

  1. ' this file gathers a few code samples that require Option Strict Off
  2. Option Strict Off
  3.  
  4. Module OptionStrictOff
  5.  
  6.     ' this procedure tests passing a ByRef argument a value of a different type
  7.  
  8.     Sub TestCallByRef()
  9.         Dim intValue As Integer
  10.         Call MyProc(intValue)
  11.     End Sub
  12.  
  13.     Sub MyProc(ByRef lngArg As Long)
  14.         lngArg = 9999
  15.     End Sub
  16. End Module
  17.